package com.wzq.permission.center.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wzq.permission.client.model.admin.OrganizeRoleModel;
import com.wzq.permission.client.model.admin.UserOrganizeModel;

/**
 * OrganizeRole Mapper
 * @author Administrator
 *
 */
public interface OrganizeRoleMapper extends BaseMapper {
	
	/**
	 * 查询角色列表
	 * @return
	 */
	List<OrganizeRoleModel> queryRoleTree();
	
	/**
	 * 查询角色id
	 * @param organizeId
	 * @return
	 */
	List<String> getRoleIdByOrgId(Object organizeId);
	
	/**
	 * 删除机构下角色
	 * @param organizeId
	 */
	void deleteByOrgId(Object organizeId);
	
	/**
	 * 批量增加角色
	 * @param orgRoleList
	 */
	void addBatch(List<OrganizeRoleModel> list);
	
	/**
	 * 根据roleId删除信息
	 * @param roleId
	 */
	void deleteOrgRoleByRoleId(Object roleId);
	/**
	 * 根据角色roleId 删除关联信息
	 * @param roleId  角色id
	 */
	void deleteOrganizeByRoleId(@Param("roleId")Long roleId);
}
